package com.pronhub.cloud.shop.web.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Setter
@Getter
public class LoginVO {

    @Pattern(regexp = "1[3456789]\\d{9}" ,message = "手机号码不正确")
    private String username; //手机号码
    @NotEmpty(message = "密码不能为空")
    private String password;
}
